<?php
class messageconfig 
{
   public $configuration;
   function __construct(){
     $this->configuration = array(
  'general'=>array(
    'tableName' => 'message',
    'isView' => False,
    'isReadOnly' => False,
    'canBeDeleted' => True,
    'hasStatus' => False,
    'hasAttach' => True,
    'description' => '',
    'orderFields' => '',
    'labelSingular' => 'Message',
    'labelPlural' => 'Messages',
    'descriptor' => 'titre',
    'timeStampable' => True,
    'formExtraTemplate' => 'messages_js',
    'showExtraTemplate' => 'sendnotifications',
    'indexExtraTemplate' => '',
    'filesPathName' => 'upload',
  ),
  'attributes'=>array(
    'id' => array( 
      'type' => 'integer',
      'size' => '',
      'label' => 'id',
      'help' => '',
      'list' => False,
      'show' => False,
      'search' => False,
      'notnull' => True,
      'readOnly' => True,
      'isID' => False,
      'default' => '',
      'description' => '',
      'ajaxFunction' => '',
      'pattern' => '',
      'errorMessage' => '',
      'enumValues' => '',
      'section' => 'Message',
      'step' => '',
      'totalfunction' => '',
      'relationType' => '',
      'relatedClass' => '',
      'alias' => 'id',
      'fileName' => '',
      'fileNameAttribute' => '',
      'fisicalFileNamePattern' => '',
  ),
    'service' => array( 
      'type' => 'BO',
      'size' => '',
      'label' => 'Service',
      'help' => '',
      'list' => True,
      'show' => True,
      'search' => True,
      'notnull' => False,
      'readOnly' => False,
      'isID' => False,
      'default' => '',
      'description' => '',
      'ajaxFunction' => '',
      'pattern' => '',
      'errorMessage' => '',
      'enumValues' => '',
      'section' => 'Envoy&eacute; par',
      'step' => '',
      'totalfunction' => '',
      'relationType' => 'One To One',
      'relatedClass' => 'service',
      'alias' => 'service',
      'fileName' => '',
      'fileNameAttribute' => '',
      'fisicalFileNamePattern' => '',
  ),
    'created_by' => array( 
      'type' => 'BO',
      'size' => '',
      'label' => 'Cr&eacute;e par',
      'help' => '',
      'list' => True,
      'show' => True,
      'search' => True,
      'notnull' => True,
      'readOnly' => False,
      'isID' => False,
      'default' => '',
      'description' => '',
      'ajaxFunction' => '',
      'pattern' => '',
      'errorMessage' => '',
      'enumValues' => '',
      'section' => 'Envoy&eacute; par',
      'step' => '',
      'totalfunction' => '',
      'relationType' => 'One To One',
      'relatedClass' => 'personne',
      'alias' => 'created_by',
      'fileName' => '',
      'fileNameAttribute' => '',
      'fisicalFileNamePattern' => '',
  ),
    'titre' => array( 
      'type' => 'string',
      'size' => '255',
      'label' => 'Titre',
      'help' => '',
      'list' => True,
      'show' => True,
      'search' => True,
      'notnull' => True,
      'readOnly' => False,
      'isID' => False,
      'default' => '',
      'description' => '',
      'ajaxFunction' => '',
      'pattern' => '',
      'errorMessage' => '',
      'enumValues' => '',
      'section' => 'Message',
      'step' => '',
      'totalfunction' => '',
      'relationType' => '',
      'relatedClass' => '',
      'alias' => 'titre',
      'fileName' => '',
      'fileNameAttribute' => '',
      'fisicalFileNamePattern' => '',
  ),
    'header' => array( 
      'type' => 'tinyMCE',
      'size' => '',
      'label' => 'Ent&ecirc;te',
      'help' => '',
      'list' => False,
      'show' => False,
      'search' => False,
      'notnull' => False,
      'readOnly' => False,
      'isID' => False,
      'default' => '',
      'description' => '',
      'ajaxFunction' => '',
      'pattern' => '',
      'errorMessage' => '',
      'enumValues' => '',
      'section' => 'Message',
      'step' => '',
      'totalfunction' => '',
      'relationType' => '',
      'relatedClass' => '',
      'alias' => 'header',
      'fileName' => '',
      'fileNameAttribute' => '',
      'fisicalFileNamePattern' => '',
  ),
    'contenu' => array( 
      'type' => 'tinyMCE',
      'size' => '',
      'label' => 'Contenu',
      'help' => '',
      'list' => False,
      'show' => True,
      'search' => False,
      'notnull' => True,
      'readOnly' => False,
      'isID' => False,
      'default' => '',
      'description' => '',
      'ajaxFunction' => '',
      'pattern' => '',
      'errorMessage' => '',
      'enumValues' => '',
      'section' => 'Message',
      'step' => '',
      'totalfunction' => '',
      'relationType' => '',
      'relatedClass' => '',
      'alias' => 'contenu',
      'fileName' => '',
      'fileNameAttribute' => '',
      'fisicalFileNamePattern' => '',
  ),
    'etat' => array( 
      'type' => 'enum',
      'size' => '',
      'label' => '&eacute;tat',
      'help' => '',
      'list' => True,
      'show' => True,
      'search' => True,
      'notnull' => False,
      'readOnly' => False,
      'isID' => False,
      'default' => '1',
      'description' => '',
      'ajaxFunction' => '',
      'pattern' => '',
      'errorMessage' => '',
      'enumValues' => '1=>Brouillon; 2=>Publi&eacute;;3=>Non lu; 4=>Partiellement lu; 5=>Lu',
      'section' => 'Message',
      'step' => '',
      'totalfunction' => '',
      'relationType' => '',
      'relatedClass' => '',
      'alias' => 'etat',
      'fileName' => '',
      'fileNameAttribute' => '',
      'fisicalFileNamePattern' => '',
  ),
    'notifications' => array( 
      'type' => 'function',
      'size' => '',
      'label' => 'Notifications',
      'help' => '',
      'list' => False,
      'show' => True,
      'search' => True,
      'notnull' => False,
      'readOnly' => False,
      'isID' => False,
      'default' => '',
      'description' => '',
      'ajaxFunction' => '',
      'pattern' => '',
      'errorMessage' => '',
      'enumValues' => '',
      'section' => 'Principal',
      'step' => '',
      'totalfunction' => '',
      'relationType' => '',
      'relatedClass' => '',
      'alias' => 'notifications',
      'fileName' => '',
      'fileNameAttribute' => '',
      'fisicalFileNamePattern' => '',
  ),
    'public' => array( 
      'type' => 'boolean',
      'size' => '',
      'label' => 'Public',
      'help' => '',
      'list' => True,
      'show' => True,
      'search' => True,
      'notnull' => False,
      'readOnly' => False,
      'isID' => False,
      'default' => '',
      'description' => '',
      'ajaxFunction' => 'showFields()',
      'pattern' => '',
      'errorMessage' => '',
      'enumValues' => '',
      'section' => 'Destinataires',
      'step' => '',
      'totalfunction' => '',
      'relationType' => '',
      'relatedClass' => '',
      'alias' => 'public',
      'fileName' => '',
      'fileNameAttribute' => '',
      'fisicalFileNamePattern' => '',
  ),
    'datedebut' => array( 
      'type' => 'date',
      'size' => '',
      'label' => 'D&eacute;but publication',
      'help' => '',
      'list' => True,
      'show' => True,
      'search' => True,
      'notnull' => False,
      'readOnly' => False,
      'isID' => False,
      'default' => '',
      'description' => '',
      'ajaxFunction' => '',
      'pattern' => '',
      'errorMessage' => '',
      'enumValues' => '',
      'section' => 'Destinataires',
      'step' => '',
      'totalfunction' => '',
      'relationType' => '',
      'relatedClass' => '',
      'alias' => 'datedebut',
      'fileName' => '',
      'fileNameAttribute' => '',
      'fisicalFileNamePattern' => '',
  ),
    'datefin' => array( 
      'type' => 'date',
      'size' => '',
      'label' => 'Fin publication',
      'help' => '',
      'list' => True,
      'show' => True,
      'search' => True,
      'notnull' => False,
      'readOnly' => False,
      'isID' => False,
      'default' => '',
      'description' => '',
      'ajaxFunction' => '',
      'pattern' => '',
      'errorMessage' => '',
      'enumValues' => '',
      'section' => 'Destinataires',
      'step' => '',
      'totalfunction' => '',
      'relationType' => '',
      'relatedClass' => '',
      'alias' => 'datefin',
      'fileName' => '',
      'fileNameAttribute' => '',
      'fisicalFileNamePattern' => '',
  ),
    'roles' => array( 
      'type' => 'CheckboxList',
      'size' => '',
      'label' => 'R&ocirc;les',
      'help' => '',
      'list' => False,
      'show' => True,
      'search' => False,
      'notnull' => False,
      'readOnly' => False,
      'isID' => False,
      'default' => '',
      'description' => '',
      'ajaxFunction' => '',
      'pattern' => '',
      'errorMessage' => '',
      'enumValues' => '',
      'section' => 'Destinataires',
      'step' => '',
      'totalfunction' => '',
      'relationType' => 'Many To Many',
      'relatedClass' => 'role',
      'refClass' => 'linkmessagerole',
      'alias' => 'roles',
      'foreignAlias' => 'messages',
      'fileName' => '',
      'fileNameAttribute' => '',
      'fisicalFileNamePattern' => '',
  ),
    'destinataires' => array( 
      'type' => 'BOList',
      'size' => '',
      'label' => 'Personnes destinataires',
      'help' => '',
      'list' => False,
      'show' => True,
      'search' => False,
      'notnull' => False,
      'readOnly' => False,
      'isID' => False,
      'default' => '',
      'description' => '',
      'ajaxFunction' => '',
      'pattern' => '',
      'errorMessage' => '',
      'enumValues' => '',
      'section' => 'Destinataires',
      'step' => '',
      'totalfunction' => '',
      'relationType' => 'One To Many',
      'relatedClass' => 'destinatairemessage',
      'alias' => 'destinataires',
      'fileName' => '',
      'fileNameAttribute' => '',
      'fisicalFileNamePattern' => '',
  ),
  ),
  'attributesWithTotal'=>array(
  ),
  );
 }
 }
